package com.company.project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.project.dto.THwtjEntityDto;
import com.company.project.entity.SysDept;
import com.company.project.entity.SysUser;
import com.company.project.entity.THwtjEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author wenbin
 * @email *****@mail.com
 * @date 2023-11-01 18:51:05
 */
public interface THwtjMapper extends BaseMapper<THwtjEntity> {

    IPage<THwtjEntityDto> getListDL(@Param("page") Page page,@Param("tHwtj") THwtjEntity tHwtj);

    List<THwtjEntity> getListJL(@Param("tHwtj")THwtjEntity tHwtj);

    List<String> selectCompany(@Param("roleName")String roleName, @Param("username")String username);

    List<String> selectXs(@Param("roleName")String roleName, @Param("username")String username);

    List<String> selectDl(@Param("roleName")String roleName, @Param("username")String username);

    List<String> selectLine(@Param("roleName")String roleName, @Param("username")String username);

    IPage<THwtjEntityDto> getListDLS(@Param("page") Page page, @Param("tHwtj") THwtjEntity tHwtj, @Param("user")  SysUser sysUser);

    THwtjEntity getDayData(@Param("roleName")String roleName,@Param("sysUser") SysUser sysUser);

    List<THwtjEntity> selectALL();

    THwtjEntity selectOneByCorporatename(@Param("corporatename") String corporatename);

    THwtjEntity getDayDataRB(@Param("roleName")String roleName,@Param("sysUser") SysUser sysUser);

    THwtjEntityDto getByDept(@Param("dept") SysDept dept,@Param("tHwtj") THwtjEntity tHwtj);

    void deleteByCompany();

    THwtjEntity selectMin(THwtjEntity jt);

    List<THwtjEntity> selectFzs(THwtjEntity jt);

    THwtjEntity selectOneBySeCorporatename(@Param("corporatename") String corporatename, @Param("jt") THwtjEntity jt);

    List<THwtjEntity> selectFzsMin(THwtjEntity jt);

    void insertList(@Param("list")List<THwtjEntity> hwtjList);

}
